﻿
namespace anael.Data.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data.Objects.DataClasses;
    using System.Linq;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;


    // The MetadataTypeAttribute identifies CategorieSetMetadata as the class
    // that carries additional metadata for the CategorieSet class.
    [MetadataTypeAttribute(typeof(CategorieSet.CategorieSetMetadata))]
    public partial class CategorieSet
    {

        // This class allows you to attach custom attributes to properties
        // of the CategorieSet class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class CategorieSetMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private CategorieSetMetadata()
            {
            }

            public int Id { get; set; }

            public string nom { get; set; }

            public EntityCollection<PersonneSet> PersonneSet { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies PersonneSetMetadata as the class
    // that carries additional metadata for the PersonneSet class.
    [MetadataTypeAttribute(typeof(PersonneSet.PersonneSetMetadata))]
    public partial class PersonneSet
    {

        // This class allows you to attach custom attributes to properties
        // of the PersonneSet class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class PersonneSetMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private PersonneSetMetadata()
            {
            }

            public int Categorie_Id { get; set; }

            [Include]
            public CategorieSet CategorieSet { get; set; }

            [Key] 
            public int Id { get; set; }

            public short nbrContact { get; set; }

            public short nbrGroupe { get; set; }

            public short nbrPhoto { get; set; }

            public short sexe { get; set; }

            public short status { get; set; }
        }
    }
}
